package pojo;

import java.time.LocalDate;

public class Order {
    private String id;
    private String course;
    private String account;
    private int status;
    private int year;
    private int month;
    private int day;

    public String getId() {
        return id;
    }

    public String getCourse() {
        return course;
    }

    public String getAccount() {
        return account;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getYear() {
        return year;
    }

    public int getMonth() {
        return month;
    }

    public int getDay() {
        return day;
    }

    public Order(String id, String course, String account) {
        LocalDate currentDate = LocalDate.now();
        this.id = id;
        this.course = course;
        this.account = account;
        this.year = currentDate.getYear();
        this.month = currentDate.getMonthValue();
        this.day = currentDate.getDayOfMonth();
    }

    public Order(String id, String course, String account, int status, int year, int month, int day) {
        this.id = id;
        this.course = course;
        this.account = account;
        this.status = status;
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public Order() {
    }
}
